﻿using System.Collections.Generic;
using System;
namespace FlexPlatform.DataModel.Validation.Generic_ValidationRules
{
   
    public class Pilot_LessThanOrEqualTo : ValidationRuleBase
    {

        protected sealed override bool ValueIsOk(object proposedValue)
        {
            if (((IComparable)proposedValue).CompareTo(clsSpecificValue) > 0)  //(proposedValue > this.clsSpecificValue)
            {
                return false;
            }

            else
            {
                return true;
            }
        }

    }
}